package com.sp.ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sp.ioc.entity.Dog;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
    	// spring框架的使用, spring容器创建了对象
    	// 1.创建应用程序上下文
    	ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
    	// 2.获取对象
    	Object per = app.getBean("per");
    	System.out.println(per);
    }
}
